package com.xixi.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName("orders")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String orderNumber;
    private Integer productId;
    private Integer buyerId;
    private Integer sellerId;
    private BigDecimal totalAmount;
    private Integer status;
    private Integer transactionMethod;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}